﻿/***************************************************************************
    Copyright (c) Microsoft Corporation. All rights reserved.
    This code is licensed under the Visual Studio 
    Visualization and Modeling SDK license terms.

    THIS CODE IS PROVIDED *AS IS* WITHOUT WARRANTY OF
    ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY
    IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR
    PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.
***************************************************************************/

namespace Microsoft.VisualStudio.ArchitectureTools.CodeRepositoryQuery
{
    // Partial implementation of a field (to provide an abstraction as a member)
    public partial class Field : IMember
    {
        /// <summary>
        /// Provides a strongly typed access to the visibility of the Field
        /// </summary>
        public AccessType Access
        {
            get
            {
                return (AccessType)AccessAsShort;
            }
            
        }

        /// <summary>
        /// A field is never abstract.
        /// </summary>
        bool IMember.IsAbstract
        {
            get
            {
                return false;
            }
        }

        /// <summary>
        /// Display label
        /// </summary>
        public override string ToString()
        {
            return this.Name;
        }
    }
}
